$OpenBSD: patch-src_base_detect_h,v 1.1 2015/12/27 17:56:22 jasper Exp $

Fix endianness detection.

--- src/base/detect.h.orig	Wed Nov 19 23:08:22 2014
+++ src/base/detect.h	Sat Aug 22 16:44:40 2015
@@ -78,15 +78,15 @@
 
 /* use gcc endianness definitions when available */
 #if defined(__GNUC__) && !defined(__APPLE__) && !defined(__MINGW32__) && !defined(__sun)
-	#if defined(__FreeBSD__) || defined(__OpenBSD__)
+	#if defined(__FreeBSD__)
 		#include <sys/endian.h>
 	#else
 		#include <endian.h>
 	#endif
 
-	#if __BYTE_ORDER == __LITTLE_ENDIAN
+	#if BYTE_ORDER == LITTLE_ENDIAN
 		#define CONF_ARCH_ENDIAN_LITTLE 1
-	#elif __BYTE_ORDER == __BIG_ENDIAN
+	#elif BYTE_ORDER == BIG_ENDIAN
 		#define CONF_ARCH_ENDIAN_BIG 1
 	#endif
 #endif
